Remove gtk_cell_view_get_size_of_row
authorTimm Bäder <mail@baedert.org>
Sat, 22 Oct 2016 07:13:52 +0000 (09:13 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 22 Oct 2016 12:36:22 +0000 (14:36 +0200)
docs/reference/gtk/gtk4-sections.txt
gtk/gtkcellview.c
gtk/gtkcellview.h

index e0988131ba9873839b609f74929cff70c1ce6902..4103df77c541ba33923a3a037ed1f22e6a231f55 100644 (file)
@@ -4268,7 +4268,6 @@ gtk_cell_view_set_model
 gtk_cell_view_get_model
 gtk_cell_view_set_displayed_row
 gtk_cell_view_get_displayed_row
-gtk_cell_view_get_size_of_row
 gtk_cell_view_set_background_color
 gtk_cell_view_set_background_rgba
 gtk_cell_view_set_draw_sensitive
index e02b1121733c0a0190af7beb4a79906ce17424a0..80c7f564ad97dacb0dfaa78a650ea1a49b5d1d91 100644 (file)
@@ -1298,51 +1298,6 @@ gtk_cell_view_get_displayed_row (GtkCellView *cell_view)
   return gtk_tree_row_reference_get_path (cell_view->priv->displayed_row);
 }
 
-/**
- * gtk_cell_view_get_size_of_row:
- * @cell_view: a #GtkCellView
- * @path: a #GtkTreePath 
- * @requisition: (out): return location for the size 
- *
- * Sets @requisition to the size needed by @cell_view to display 
- * the model row pointed to by @path.
- * 
- * Returns: %TRUE
- *
- * Since: 2.6
- * 
- * Deprecated: 3.0: Combo box formerly used this to calculate the
- * sizes for cellviews, now you can achieve this by either using
- * the #GtkCellView:fit-model property or by setting the currently
- * displayed row of the #GtkCellView and using gtk_widget_get_preferred_size().
- */
-gboolean
-gtk_cell_view_get_size_of_row (GtkCellView    *cell_view,
-                               GtkTreePath    *path,
-                               GtkRequisition *requisition)
-{
-  GtkTreeRowReference *tmp;
-  GtkRequisition req;
-
-  g_return_val_if_fail (GTK_IS_CELL_VIEW (cell_view), FALSE);
-  g_return_val_if_fail (path != NULL, FALSE);
-
-  tmp = cell_view->priv->displayed_row;
-  cell_view->priv->displayed_row =
-    gtk_tree_row_reference_new (cell_view->priv->model, path);
-
-  gtk_widget_get_preferred_width (GTK_WIDGET (cell_view), &req.width, NULL);
-  gtk_widget_get_preferred_height_for_width (GTK_WIDGET (cell_view), req.width, &req.height, NULL);
-
-  gtk_tree_row_reference_free (cell_view->priv->displayed_row);
-  cell_view->priv->displayed_row = tmp;
-
-  if (requisition)
-    *requisition = req;
-
-  return TRUE;
-}
-
 /**
  * gtk_cell_view_set_background_rgba:
  * @cell_view: a #GtkCellView
index 7a3ff56a449c59002f72ae69216fc8af620a4cab..560fa691b0fce19090f2cb04ff448e3b36139c3b 100644 (file)
@@ -103,10 +103,6 @@ GDK_AVAILABLE_IN_ALL
 void              gtk_cell_view_set_fit_model           (GtkCellView     *cell_view,
                                                          gboolean         fit_model);
 
-GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_size)
-gboolean          gtk_cell_view_get_size_of_row         (GtkCellView     *cell_view,
-                                                         GtkTreePath     *path,
-                                                         GtkRequisition  *requisition);
 G_END_DECLS
 
 #endif /* __GTK_CELL_VIEW_H__ */